package com.hospital.pet.love.lovepethospital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName case_drug
 */
@TableName(value ="case_drug")
@Data
public class CaseDrug implements Serializable {
    /**
     * 唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 病例id
     */
    @TableField(value = "case_id")
    private Integer caseId;

    /**
     * 药品id
     */
    @TableField(value = "drug_id")
    private Integer drugId;

    /**
     * 药品数量
     */
    @TableField(value = "drug_quantity")
    private Integer drugQuantity;

    /**
     * 状态
     */
    @TableField(value = "state")
    private Integer state;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}